<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/','IndexController@index');
/*Route::get('/', function () {
    return view('index');
});*/
Route::get('/home',function(){
	return 'welcome to center';
});

/*//注册路由
Route::get('auth/register','Auth\AuthController@getRegister');
Route::post('auth/register','Auth\AuthController@postRegister');

//登陆路由
Route::get('auth/login','Auth\AuthController@getLogin');
Route::post('auth/login','Auth\AuthController@postLogin');

//退出的路由
Route::get('auth/logout','Auth\AuthController@getLogout');*/

//路由分组
Route::group(['prefix'=>'auth','namespace'=>'Auth'],function(){
	//注册路由
	Route::get('register','AuthController@getRegister');
	Route::post('register','AuthController@postRegister');
	//登陆路由
	Route::get('login','AuthController@getLogin');
	Route::post('login','AuthController@postLogin');
	//退出的路由
	Route::get('logout','Auth\AuthController@getLogout');
});

//借款路由
Route::get('jie','ProController@jie');
Route::post('jie','ProController@jiepost');

//投标页
Route::get('pro/{pid}','ProController@pro');
Route::post('touzi/{pid}','ProController@touzi');

//审核路由
Route::get('prolist','CheckController@prolist');
Route::get('check/{pid}','CheckController@check');
Route::post('check/{pid}','CheckController@checkPost');


//收益路由
Route::get('payrun','GrowController@run');

//还款账单路由
Route::get('myzd','ProController@myzd');

//投资路由
Route::get('mytz','ProController@mytz');
//收益账单路由
Route::get('mysy','ProController@mysy');